package com.zhoukx.command;

/**
 * @ClassName TVOffCommand
 * @Description:
 * @Author zhoukx
 * @Date 2020/8/17
 **/
public class TVOffCommand  implements  Command{
    TVReveiver tv;

    public TVOffCommand(TVReveiver tv) {
        this.tv = tv;
    }

    @Override
    public void execute() {
        tv.on();
    }

    @Override
    public void undo() {
      tv.off();
    }
}
